import Vue from 'vue'
import App from './App.vue'
import './plugins/element.js'
import highlight from './plugins/highlight.js'
import router from './router'
import store from './store'
import filters from './filter/filter.js'
import Panel from './components/Panel'
import IconBtn from './components/IconBtn'
import MarkdownEditor from './components/MarkdownEditor'
import '@/icons/index.js'

import '@/styles/index.scss' // global css

Vue.config.productionTip = false;

Vue.component(Panel.name, Panel);
Vue.component(IconBtn.name, IconBtn);
Vue.component(MarkdownEditor.name, MarkdownEditor)


Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
});


new Vue({
    router,
    store: store,
    render: h => h(App)
}).$mount('#app');

Vue.use(highlight);
